home *** CD-ROM | disk | FTP | other *** search
- #!/bin/bash
-
- # VolumeCheck - installation phase for Concierge
- #
- # $1 contains the path to the volume to check
- # $PACKAGE_PATH is the full path to the installation package
-
- libDirectory="$1/Library"
- returnValue=0
-
- if (test -d "$libDirectory") then
- # Toplevel Library directory found; return zero to installer
- returnValue=0
- else
- # The volume does not contain a toplevel Library directory
-
- # Disallow the volume by setting the action bit
- returnValue=$((1<<5))
-
- # Specify message #16 to display to the user for this disallowed volume
- # returnValue=$((returnValue|16))
- fi
-
- exit $returnValue
-